package org.orz.story.pms.biz.persistence.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.orz.story.pms.biz.persistence.entities.PmsApi;

import java.util.List;

@Mapper
public interface PmsApiMapper extends BaseMapper<PmsApi> {

    /**
     * 根据memAccountId查询接口信息
     * @param memAccountId 用户id
     * @return 接口集合
     */
    List<PmsApi> listApiInfoByAccount(@Param("memAccountId") Long memAccountId, @Param("workbenchCode") String workbenchCode, @Param("apiUrl") String apiUrl);

    /**
     * 根据权限id查询已经分配的接口集合
     * @param permissionId 权限id
     */
    List<PmsApi> listApiByPermissionId(@Param("permissionId") Long permissionId);
}
